<template>
	<view class="box">

		<view class="" v-for="(item,index) in data " :key="index">

			<u-button @click="change(item)">{{item.name}}</u-button>
		</view>





	</view>
</template>

<script setup>
	export default {
		data() {
			return {
				data: [{
						name: '6051蚂蚁宝全屏',
						a: '0c51e4b851099e5f5898fa6c0b27f703'
					},
					{
						name: '6050蚂蚁宝全屏',
						a: 'ffa7c989b4f688594a528256112b04a6'
					},
					{
						name: '6049蚂蚁宝全屏',
						a: '8123b97d4d58e07989975cef0351f180'
					},
					{
						name: '6048蚂蚁宝全屏',
						a: '4372b08528369ae455187591e78b1216'
					},
					{
						name: '6047蚂蚁宝全屏',
						a: '1a86a73d7ca8d4dbc3750c598d6e7f58'
					},
					{
						name: '6046蚂蚁宝全屏',
						a: 'cca4b34a4036a9daad8ddc6c5594f99b'
					},
					{
						name: '6045蚂蚁宝全屏',
						a: '1b4194bfdf4d03c46d6624f74b323ea9'
					},
					{
						name: '6044蚂蚁宝全屏',
						a: '9a3f7b998469637bd43aa524df09049f'
					},
					{
						name: '6043蚂蚁宝全屏',
						a: '0de2509841d8d2aede498ad9b4b818af'
					},
					{
						name: '6042蚂蚁宝全屏',
						a: '9e6d4247982fd5a2857ffe64efe90328'
					},
				]

			};
		},

		onLoad(option) {


		},
		methods: {
			change(item) {
				console.log(item)
				my.setStorageSync({
					key: 'a',
					data: item.a
				})
				uni.navigateTo({
					url: "/pages/unit/unit?a="+item.a
				})
			}
		
		},


		onShow() {

		}
	}
</script>

<style lang="scss" scoped>

</style>